<div appBsModal #createOrEditModal="bs-modal"  class="modal fade" tabindex="-1" role="dialog" aria-labelledby="createOrEditModal" aria-hidden="true" [config]="{backdrop: 'static', keyboard: !saving}">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <form  #flowCategoryForm="ngForm" novalidate (ngSubmit)="save()">
                <div class="modal-header">
                    <h4 class="modal-title">
                        <span *ngIf="workflowCategoryItem.id">{{"Edit" | localize}}</span>
                        <span *ngIf="!workflowCategoryItem.id">{{"Create" | localize}}</span>
                    </h4>
                    <button type="button" class="close" (click)="close()" [attr.aria-label]="l('Close')" [disabled]="saving">
                        <i aria-hidden="true" class="bi bi-x"></i>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="col-sm-12">
                        <div class="form-group form-md-line-input form-md-floating-label no-hint">
                            <label>{{"Title" | localize}}</label>
                            <input class="form-control" type="text" name="name"   required  [(ngModel)]="workflowCategoryItem.name">
                        </div>
                    </div>

                    <div class="col-sm-12">
                        <div class="form-group form-md-line-input form-md-floating-label no-hint">
                            <label>排序号</label>
                            <input class="form-control" type="number" name="order"  [(ngModel)]="workflowCategoryItem.order">
                        </div>
                    </div>

                    <div class="col-sm-12">
                        <label for="isActive" class="checkbox">
                            <input id="isActive"  type="checkbox" name="isActive" [(ngModel)]="workflowCategoryItem.isActive">
                            <span></span>
                            {{"Active" | localize}}
                        </label>
                    </div>
                </div>
                <div class="modal-footer">
                    <button [disabled]="saving" type="button" class="btn btn-light-primary font-weight-bold" (click)="close()">{{"Cancel" | localize}}</button>
                    <button type="submit" class="btn btn-primary font-weight-bold" [disabled]="!flowCategoryForm.form.valid" [buttonBusy]="saving" [busyText]="l('SavingWithThreeDot')"><i class="fa fa-save"></i> <span>{{"Save" | localize}}</span></button>
                </div>
            </form>
        </div>
    </div>
</div>
